import base from '@/api/baseurl';
import request from '@/utils/request'

export function findSystemParam(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/system/like',
    method: 'get',
    params: query
  })
}

export function addSystemParam(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/system/add',
    method: 'post',
    data
  })
}

export function updateSystemParam(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/system/update',
    method: 'post',
    data
  })
}

export function delSystemParam(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/system/del',
    method: 'get',
    params: query
  })
}

export function delManySystemParam(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/system/delMany',
    method: 'post',
    data
  })
}
